
<meta charset="utf-8" />

<form class="form-horizontal" role="form"
	onsubmit="return submitForm(this);"
	action="mpamng/deployFeeEdit/edit.do" id="deployFeeEdit_form">
	<!-- #section:elements.form -->
	<br />
	<!-- 
	 * Input属性说明:
	 * validate="true"  是否需要验证字段
	 * msg="错误时提示信息"        
	 * datatype="数据类型"
	-->
	<div class="form-group">
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> 合作机构名称： </label>
		<div class="col-sm-4">

			<input type="text" id="agentId" name="agentId" placeholder=""
				class="col-xs-10 col-sm-7" readonly="readonly" />
		</div>
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> 支付渠道编号： </label>
		<div class="col-sm-4">

			<input type="text" id="channel" name="channel" placeholder=""
				class="col-xs-10 col-sm-7" readonly="readonly" />
		</div>
	</div>

	<div class="form-group">
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> 费率类型： </label>
		<div class="col-sm-4">

			<input type="text" id="rateType" name="rateType"
				class="col-xs-10 col-sm-7" readonly="readonly" />
		</div>
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> T0交易费率(成本)%： </label>
		<div class="col-sm-4">

			<input type="text" id="costRateT0" name="costRateT0"
				class="col-xs-10 col-sm-7" />
		</div>
	</div>

	<div class="form-group">
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> T1交易费率(成本)%： </label>
		<div class="col-sm-4">

			<input type="text" id="costRateT1" name="costRateT1" placeholder=""
				class="col-xs-10 col-sm-7" datatype="number" />
		</div>
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> T0最小手续费(成本)分： </label>
		<div class="col-sm-4">

			<input type="text" id="costMinFeeT0" name="costMinFeeT0"
				placeholder="" class="col-xs-10 col-sm-7" datatype="number" />
		</div>
	</div>

	<div class="form-group">
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> T0封顶手续费(成本)分： </label>
		<div class="col-sm-4">

			<input type="text" id="costMaxFeeT0" name="costMaxFeeT0"
				placeholder="" class="col-xs-10 col-sm-7" datatype="number" />
		</div>
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> T1最小手续费(成本)分： </label>
		<div class="col-sm-4">

			<input type="text" id="costMinFeeT1" name="costMinFeeT1"
				placeholder="" class="col-xs-10 col-sm-7" datatype="number" />
		</div>
	</div>

	<div class="form-group">
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> T1封顶手续费(成本)分： </label>
		<div class="col-sm-4">

			<input type="text" id="costMaxFeeT1" name="costMaxFeeT1"
				placeholder="" class="col-xs-10 col-sm-7" datatype="number" />
		</div>
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> T0交易费率%： </label>
		<div class="col-sm-4">

			<input type="text" id="rateT0" name="rateT0" placeholder=""
				class="col-xs-10 col-sm-7" datatype="number" />
		</div>
	</div>

	<div class="form-group">
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> T1交易费率%： </label>
		<div class="col-sm-4">

			<input type="text" id="rateT1" name="rateT1" placeholder=""
				class="col-xs-10 col-sm-7" datatype="number" />
		</div>
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> T0最小手续费分： </label>
		<div class="col-sm-4">

			<input type="text" id="minFeeT0" name="minFeeT0" placeholder=""
				class="col-xs-10 col-sm-7" datatype="number" />
		</div>
	</div>


	<div class="form-group">
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> T0封顶手续费分： </label>
		<div class="col-sm-4">

			<input type="text" id="maxFeeT0" name="maxFeeT0" placeholder=""
				class="col-xs-10 col-sm-7" datatype="number" />
		</div>
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> T1最小手续费分： </label>
		<div class="col-sm-4">

			<input type="text" id="minFeeT1" name="minFeeT1" placeholder=""
				class="col-xs-10 col-sm-7" datatype="number" />
		</div>
	</div>

	<div class="form-group">
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> T1封顶手续费分： </label>
		<div class="col-sm-4">

			<input type="text" id="maxFeeT1" name="maxFeeT1" placeholder=""
				class="col-xs-10 col-sm-7" datatype="number" />
		</div>

	</div>

	<!-- <input type="hidden" id="editUserId" name="editUserId" /> -->


	<div class="form-actions align-right  form-button-box"
		style="margin-top: 10px">
		<button class="btn btn-info" type="submit">保存</button>
		&nbsp;
		<button class="btn" type="button"
			onclick="javascript:dialog.close(this);">关闭</button>
	</div>

</form>
<script type="text/javascript">
	/* $(document).ready(function() {
		var p = dialog.getById('dlg-cooporgedit');
		//设置页面初始值
		$("#editUserId").attr("value", p.dataParam.editUserId);
		$("#editUserName").attr("value", p.dataParam.editUserName);
	}); */

	function submitForm(obj) {

		var coopType = $("#coopType option:selected").val();
		if (coopType == '') {
			alertMsg.error('请选择合作机构类型');
			return false;
		}

		var svrsts = $("#svrsts option:selected").val();
		if (svrsts == '') {
			alertMsg.error('请选择服务开通状态');
			return false;
		}

		//自定义匿名回调函数。 系统默认回调函数：dialogAjaxDone
		return validateCallback(obj, function(result) {
			if (result.rspcod == 200) {
				msg.alert("提示", result.rspmsg, 'correct');
				$("#grid-table").trigger("reloadGrid");
				dialog.close(obj);
			} else {
				msg.alert("错误", result.rspmsg + " 错误代码：" + result.rspcod,
						'error');
			}
		});
	}
</script>
